#define  _CRT_SECURE_NO_WARNINGS 1
#include"heap.h"

void HpInit(heap* phead)
{
	assert(phead);
	phead->arr = NULL;
	phead->size = phead->capacity = 0;
}
void Hpdestroy(heap* phead)
{
	assert(phead);
	if (phead->arr == NULL)
		free(phead->arr);
		phead->arr = NULL;
		phead->capacity = phead->size = 0;
 
}